function[A,b]=equation2Aandb(equation_set,equationsymbol_set)
A=zeros(size(equation_set,1),2);
b=zeros(size(equation_set,1),1);
for i=1:size(equation_set,1)
     if equationsymbol_set(i,1)==1
        A(i,:)=-equation_set(i,1:2);
        b(i,1)=equation_set(i,3)-5;
     end
     if equationsymbol_set(i,1)==-1
        A(i,:)=equation_set(i,1:2);
        b(i,1)=-equation_set(i,3)+5;
     end
end
m = size(A, 1);
for i = 1 : m
    no = norm(A(i, :));
    if (no > 1)
        A(i, :) = A(i, :) / no;
        b(i) = b(i) / no;
    end
end

end